package com.zoo.diannaopeijian.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 主页控制器
 */
@Controller
public class HomeController extends BaseController {
    @GetMapping(value = "/")
    public String indexRoute() {
        return "redirect:pages/homePage";
    }

    @GetMapping(value = "/pages/{pageName}")
    public String pageRoute(@PathVariable String pageName) {
        return "home/" + pageName;
    }

}
